package com.sinsoft.monitorDemo.entity;

import java.util.Map;

public class NginxInfo {
	
	private Double cpuUsedPer;
	private Integer maxConnections;
	private String status;
	private Integer portSum; 
	private Double memUsedPer;
	private Integer connections;
	private Map<Integer, String> portStatus;
	private Long time;
	
	public NginxInfo() {
		super();
	}

	public NginxInfo(Double cpuUsedPer, Integer maxConnections, String status,
			Integer portSum, Double memUsedPer, Integer connections,
			Map<Integer, String> portStatus,Long time) {
		super();
		this.cpuUsedPer = cpuUsedPer;
		this.maxConnections = maxConnections;
		this.status = status;
		this.portSum = portSum;
		this.memUsedPer = memUsedPer;
		this.connections = connections;
		this.portStatus = portStatus;
		this.time = time;
	}

	public Double getCpuUsedPer() {
		return cpuUsedPer;
	}

	public void setCpuUsedPer(Double cpuUsedPer) {
		this.cpuUsedPer = cpuUsedPer;
	}

	public Integer getMaxConnections() {
		return maxConnections;
	}

	public void setMaxConnections(Integer maxConnections) {
		this.maxConnections = maxConnections;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getPortSum() {
		return portSum;
	}

	public void setPortSum(Integer portSum) {
		this.portSum = portSum;
	}

	public Double getMemUsedPer() {
		return memUsedPer;
	}

	public void setMemUsedPer(Double memUsedPer) {
		this.memUsedPer = memUsedPer;
	}

	public Integer getConnections() {
		return connections;
	}

	public void setConnections(Integer connections) {
		this.connections = connections;
	}

	public Map<Integer, String> getPortStatus() {
		return portStatus;
	}

	public void setPortStatus(Map<Integer, String> portStatus) {
		this.portStatus = portStatus;
	}
	

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "NginxInfo [cpuUsedPer=" + cpuUsedPer + ", maxConnections="
				+ maxConnections + ", status=" + status + ", portSum="
				+ portSum + ", memUsedPer=" + memUsedPer + ", connections="
				+ connections + ", portStatus=" + portStatus + "]";
	}

}
